package fidel.spring.shiro.demo.service;

import java.security.NoSuchAlgorithmException;
import javax.validation.constraints.NotNull;

import org.apache.shiro.authc.AuthenticationToken;

import fidel.spring.shiro.demo.exception.CustomException;
import fidel.spring.shiro.demo.po.ActiveUser;
import fidel.spring.shiro.demo.po.SysUser;

/**
 * 
 * 认证授权服务接口
 * 
 * @version 1.0
 */
public interface SysService {

    public SysUser authenticate(@NotNull AuthenticationToken token) throws NoSuchAlgorithmException, CustomException;

    public void authorize(@NotNull ActiveUser activeUser);

}
